package com.grad.why.studentsystem.domain;

import java.util.ArrayList;
import java.util.List;

public class CourseArrangeExample implements java.io.Serializable{
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CourseArrangeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCoursearrangeidIsNull() {
            addCriterion("coursearrangeid is null");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidIsNotNull() {
            addCriterion("coursearrangeid is not null");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidEqualTo(Integer value) {
            addCriterion("coursearrangeid =", value, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidNotEqualTo(Integer value) {
            addCriterion("coursearrangeid <>", value, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidGreaterThan(Integer value) {
            addCriterion("coursearrangeid >", value, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("coursearrangeid >=", value, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidLessThan(Integer value) {
            addCriterion("coursearrangeid <", value, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidLessThanOrEqualTo(Integer value) {
            addCriterion("coursearrangeid <=", value, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidIn(List<Integer> values) {
            addCriterion("coursearrangeid in", values, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidNotIn(List<Integer> values) {
            addCriterion("coursearrangeid not in", values, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidBetween(Integer value1, Integer value2) {
            addCriterion("coursearrangeid between", value1, value2, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andCoursearrangeidNotBetween(Integer value1, Integer value2) {
            addCriterion("coursearrangeid not between", value1, value2, "coursearrangeid");
            return (Criteria) this;
        }

        public Criteria andClassroomidIsNull() {
            addCriterion("classroomid is null");
            return (Criteria) this;
        }

        public Criteria andClassroomidIsNotNull() {
            addCriterion("classroomid is not null");
            return (Criteria) this;
        }

        public Criteria andClassroomidEqualTo(Integer value) {
            addCriterion("classroomid =", value, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidNotEqualTo(Integer value) {
            addCriterion("classroomid <>", value, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidGreaterThan(Integer value) {
            addCriterion("classroomid >", value, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidGreaterThanOrEqualTo(Integer value) {
            addCriterion("classroomid >=", value, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidLessThan(Integer value) {
            addCriterion("classroomid <", value, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidLessThanOrEqualTo(Integer value) {
            addCriterion("classroomid <=", value, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidIn(List<Integer> values) {
            addCriterion("classroomid in", values, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidNotIn(List<Integer> values) {
            addCriterion("classroomid not in", values, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidBetween(Integer value1, Integer value2) {
            addCriterion("classroomid between", value1, value2, "classroomid");
            return (Criteria) this;
        }

        public Criteria andClassroomidNotBetween(Integer value1, Integer value2) {
            addCriterion("classroomid not between", value1, value2, "classroomid");
            return (Criteria) this;
        }

        public Criteria andCourseindexIsNull() {
            addCriterion("courseindex is null");
            return (Criteria) this;
        }

        public Criteria andCourseindexIsNotNull() {
            addCriterion("courseindex is not null");
            return (Criteria) this;
        }

        public Criteria andCourseindexEqualTo(String value) {
            addCriterion("courseindex =", value, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexNotEqualTo(String value) {
            addCriterion("courseindex <>", value, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexGreaterThan(String value) {
            addCriterion("courseindex >", value, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexGreaterThanOrEqualTo(String value) {
            addCriterion("courseindex >=", value, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexLessThan(String value) {
            addCriterion("courseindex <", value, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexLessThanOrEqualTo(String value) {
            addCriterion("courseindex <=", value, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexLike(String value) {
            addCriterion("courseindex like", value, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexNotLike(String value) {
            addCriterion("courseindex not like", value, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexIn(List<String> values) {
            addCriterion("courseindex in", values, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexNotIn(List<String> values) {
            addCriterion("courseindex not in", values, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexBetween(String value1, String value2) {
            addCriterion("courseindex between", value1, value2, "courseindex");
            return (Criteria) this;
        }

        public Criteria andCourseindexNotBetween(String value1, String value2) {
            addCriterion("courseindex not between", value1, value2, "courseindex");
            return (Criteria) this;
        }

        public Criteria andStartweekIsNull() {
            addCriterion("startweek is null");
            return (Criteria) this;
        }

        public Criteria andStartweekIsNotNull() {
            addCriterion("startweek is not null");
            return (Criteria) this;
        }

        public Criteria andStartweekEqualTo(Integer value) {
            addCriterion("startweek =", value, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekNotEqualTo(Integer value) {
            addCriterion("startweek <>", value, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekGreaterThan(Integer value) {
            addCriterion("startweek >", value, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekGreaterThanOrEqualTo(Integer value) {
            addCriterion("startweek >=", value, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekLessThan(Integer value) {
            addCriterion("startweek <", value, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekLessThanOrEqualTo(Integer value) {
            addCriterion("startweek <=", value, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekIn(List<Integer> values) {
            addCriterion("startweek in", values, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekNotIn(List<Integer> values) {
            addCriterion("startweek not in", values, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekBetween(Integer value1, Integer value2) {
            addCriterion("startweek between", value1, value2, "startweek");
            return (Criteria) this;
        }

        public Criteria andStartweekNotBetween(Integer value1, Integer value2) {
            addCriterion("startweek not between", value1, value2, "startweek");
            return (Criteria) this;
        }

        public Criteria andEndweekIsNull() {
            addCriterion("endweek is null");
            return (Criteria) this;
        }

        public Criteria andEndweekIsNotNull() {
            addCriterion("endweek is not null");
            return (Criteria) this;
        }

        public Criteria andEndweekEqualTo(Integer value) {
            addCriterion("endweek =", value, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekNotEqualTo(Integer value) {
            addCriterion("endweek <>", value, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekGreaterThan(Integer value) {
            addCriterion("endweek >", value, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekGreaterThanOrEqualTo(Integer value) {
            addCriterion("endweek >=", value, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekLessThan(Integer value) {
            addCriterion("endweek <", value, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekLessThanOrEqualTo(Integer value) {
            addCriterion("endweek <=", value, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekIn(List<Integer> values) {
            addCriterion("endweek in", values, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekNotIn(List<Integer> values) {
            addCriterion("endweek not in", values, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekBetween(Integer value1, Integer value2) {
            addCriterion("endweek between", value1, value2, "endweek");
            return (Criteria) this;
        }

        public Criteria andEndweekNotBetween(Integer value1, Integer value2) {
            addCriterion("endweek not between", value1, value2, "endweek");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(Integer value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(Integer value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(Integer value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(Integer value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(Integer value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<Integer> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<Integer> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(Integer value1, Integer value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(Integer value1, Integer value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andWeekdayIsNull() {
            addCriterion("weekday is null");
            return (Criteria) this;
        }

        public Criteria andWeekdayIsNotNull() {
            addCriterion("weekday is not null");
            return (Criteria) this;
        }

        public Criteria andWeekdayEqualTo(String value) {
            addCriterion("weekday =", value, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayNotEqualTo(String value) {
            addCriterion("weekday <>", value, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayGreaterThan(String value) {
            addCriterion("weekday >", value, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayGreaterThanOrEqualTo(String value) {
            addCriterion("weekday >=", value, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayLessThan(String value) {
            addCriterion("weekday <", value, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayLessThanOrEqualTo(String value) {
            addCriterion("weekday <=", value, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayLike(String value) {
            addCriterion("weekday like", value, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayNotLike(String value) {
            addCriterion("weekday not like", value, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayIn(List<String> values) {
            addCriterion("weekday in", values, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayNotIn(List<String> values) {
            addCriterion("weekday not in", values, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayBetween(String value1, String value2) {
            addCriterion("weekday between", value1, value2, "weekday");
            return (Criteria) this;
        }

        public Criteria andWeekdayNotBetween(String value1, String value2) {
            addCriterion("weekday not between", value1, value2, "weekday");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}